import { defineStore } from 'pinia';

interface FullScreenState {
  isFullScreen: boolean;
}
const useFullScreenStore = defineStore('fullScreen', {
  state: (): FullScreenState => ({
    isFullScreen: false,
  }),

  getters: {
    getFullScreen(state: FullScreenState): FullScreenState {
      return { ...state };
    },
  },

  actions: {
    changeFullScreen() {
      this.isFullScreen = !this.isFullScreen;
    },
  },
});

export default useFullScreenStore;
